<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// [ 应用入口文件 ]
// 定义应用目录
 
 
define('LOG_PATH', __DIR__. '/../log/'); 
//web根目录，非应用根目录，一般为应用目录的父级目录，如：WWW
define('ROOT', dirname(dirname(dirname(__FILE__))) . '/'); 
//应用可访问根目录（项目目录名）
define('WWW_ROOT' , dirname(dirname(__FILE__)));
// define('EXTEND_PATH', '../extend/');
//当前相对根域名
$abs = explode('\\',WWW_ROOT);
define('__ROOT__','/'.end($abs));
// 定义应用目录
define('APP_PATH', __DIR__ . '/../application/');
// 加载框架引导文件
require __DIR__ . '/../thinkphp/start.php';
